package com.ruoyi.hire.domain.vo;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;


/**
 * 用人单位注册验证码
 */
@Data
public class CompanyRegisterCaptchaCodeVo {

    @NotEmpty(message = "uuid不能为空")
    @Size(min = 32, max = 32, message = "uuid长度不正确")
    private String uuid;

    /**
     * 验证码
     */
    @NotEmpty(message = "验证码不能为空")
    @Size(min = 4, max = 4, message = "验证码长度不正确")
    private String code;

    /**
     * 注册手机号
     */
    @NotEmpty(message = "注册手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "注册手机号格式不正确")
    private String phoneNumber;
}
